package com.weiyuwqj.api.model.convert;

/**
 * Created by Administrator on 2016/3/25.
 */
public class InvestTypeConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if (val == null) return "";
        if (!(val instanceof Integer)) {
            return "";
        }
        int type = (Integer) val;
        if (type == 1) {
            return "安卓端";
        } else if (type == 2) {
            return "iOS端";
        }else if (type == 5) {
            return "自动投标";
        }else if (type == 7) {
            return "债转投资";
        }else {
            return "其他";
        }
    }
}
